<?php /* Smarty version Smarty-3.1.18, created on 2015-09-21 17:51:31
         compiled from "E:\www\gfour\ws\Admin\View\Suipai\index.html" */ ?>
<?php /*%%SmartyHeaderCode:1477455ffd32316a3b7-31450053%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'd7c7ca535cc580c7103c78d2f9cc8f0f3c902d22' => 
    array (
      0 => 'E:\\www\\gfour\\ws\\Admin\\View\\Suipai\\index.html',
      1 => 1440221168,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1477455ffd32316a3b7-31450053',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    '_C' => 0,
    '_GET' => 0,
    'ad_list' => 0,
    'ad' => 0,
    'pic' => 0,
    'user_list_page' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_55ffd323250b62_45894331',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_55ffd323250b62_45894331')) {function content_55ffd323250b62_45894331($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'E:\\www\\gfour\\ws\\Qiaqia\\Vendor\\Smarty\\plugins\\modifier.date_format.php';
?><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/amazeui.min.css"/>
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/hy.admin.css"/>
		<style>
			#tooltip{
	position:absolute;
	border:1px solid #ccc;
	background:#333;
	padding:2px;
	display:none;
	color:#fff;
}
		</style>
	</head>
	<body>
		<div class="am-g">
			 <?php echo $_smarty_tpl->getSubTemplate ('../Common/hy_header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

			 	
      <div class="am-u-md-6 am-cf">
        <div class="am-fl am-cf">
          <div class="am-btn-toolbar am-fl">
            <div class="am-btn-group am-btn-group-xs">
              <button  type="button" class="am-btn am-btn-default hy-js-delall"><span class="am-icon-trash-o"></span> 删除</button>
            </div>

           
          </div>
        </div>
      </div>
	  
      <div class="am-u-md-3 am-cf">
        <div class="am-fr">
          <div class="am-input-group am-input-group-sm">
          		<input value="<?php echo $_smarty_tpl->tpl_vars['_GET']->value['c'];?>
" data-am-datepicker type="text" class="am-form-field hy-js-search-type" placeholder="起始時間">
          </div>
        </div>
      </div>
      <div class="am-u-md-3 am-cf">
        <div class="am-fr">
          <div class="am-input-group am-input-group-sm">
            <input value="<?php echo $_smarty_tpl->tpl_vars['_GET']->value['k'];?>
" data-am-datepicker type="text" class="am-form-field hy-js-search" placeholder="截止時間">
                <span class="am-input-group-btn">
                  <button class="am-btn am-btn-default hy-js-searchbtn-wen" type="button">搜索</button>
                </span>
          </div>
        </div>
      </div>
      
      <div class="am-g">
      <div class="am-u-sm-12">
        <div class="am-form">
          <table class="am-table am-table-striped am-table-hover hy-table-main">
            <thead>
              <tr>
                <th class="table-check"><input class="hy-js-selectall" type="checkbox" /></th>
               
                <th class="table-type">微信昵称</th>
				 <th class="table-type">openid</th>
				 <th class="table-type">报料内容</th>
                <th class="table-date">手机号码</th>
                <th class="table-date">图片</th>
               
                <th class="table-date">报料时间</th>
                <th class="table-set">操作</th>
              </tr>
          </thead>
          <tbody>
          <?php  $_smarty_tpl->tpl_vars['ad'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ad']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['ad_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['ad']->key => $_smarty_tpl->tpl_vars['ad']->value) {
$_smarty_tpl->tpl_vars['ad']->_loop = true;
?>
          	<tr>
          		<td><input class="hy-js-id" type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['ad']->value['id'];?>
"/></td>
          		
				<td><?php echo $_smarty_tpl->tpl_vars['ad']->value['nickname'];?>
</td>
				<td><?php echo $_smarty_tpl->tpl_vars['ad']->value['openid'];?>
</td>
	            <td><?php echo $_smarty_tpl->tpl_vars['ad']->value['content'];?>
</td>
	            <td><?php echo $_smarty_tpl->tpl_vars['ad']->value['phone'];?>
</td>
	            <td>
	            	<?php  $_smarty_tpl->tpl_vars['pic'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['pic']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['ad']->value['pic']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['pic']->key => $_smarty_tpl->tpl_vars['pic']->value) {
$_smarty_tpl->tpl_vars['pic']->_loop = true;
?>
					<a href="<?php echo $_smarty_tpl->tpl_vars['pic']->value;?>
" class="tooltip" ><img src="<?php echo $_smarty_tpl->tpl_vars['pic']->value;?>
"  style="width:30px;"></a>
					<?php } ?>
	            </td>
	           
	            <td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['ad']->value['created'],"Y-m-d");?>
</td>
	            <td>
	                <div class="am-btn-toolbar">
	                  <div class="am-btn-group am-btn-group-xs">
	                   <!--  <button data-id="adcontent_<?php echo $_smarty_tpl->tpl_vars['ad']->value['id'];?>
" data-title="<?php echo $_smarty_tpl->tpl_vars['ad']->value['name'];?>
" data-href="index.php?g=admin&m=sign&a=content&mid=<?php echo $_smarty_tpl->tpl_vars['ad']->value['id'];?>
" class="am-btn am-btn-default am-btn-xs hy-js-href"><span class="am-icon-copy"></span> 详情</button> -->
	                    <button data-param ="{ url:'index.php?g=admin&m=suipai&a=del&id=<?php echo $_smarty_tpl->tpl_vars['ad']->value['sp_id'];?>
',hide:4}" class="am-btn am-btn-default am-btn-xs am-text-danger hy-js-del"><span class="am-icon-trash-o"></span> 删除</button>
	                  </div>
	                </div>
	            </td>
          	</tr>
          	<?php } ?>
          </tbody>
        </table>
          <div class="am-cf">

			  <div class="am-fr">
				<?php echo $_smarty_tpl->tpl_vars['user_list_page']->value;?>

			  </div>
			</div>
          <hr />
      
        </div>
      </div>

    </div>
    </div>
   <?php echo $_smarty_tpl->getSubTemplate ('../Common/hy_footer.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

   <script>
   	$(function(){
	var x = 10;
	var y = 20;
	$("a.tooltip").mouseover(function(e){
		this.myTitle = this.title;
		this.title = "";
		var imgTitle = this.myTitle? "<br/>" + this.myTitle : "";
		var tooltip = "<div id='tooltip'><img src='"+ this.href +"' alt='产品预览图'/>"+imgTitle+"<\/div>"; //创建 div 元素
		$("body").append(tooltip);	//把它追加到文档中
		$("#tooltip")
			.css({
				"top": (e.pageY+y) + "px",
				"left":  (e.pageX+x)  + "px"
			}).show("fast");	  //设置x坐标和y坐标，并且显示
    }).mouseout(function(){
		this.title = this.myTitle;
		$("#tooltip").remove();	 //移除
    }).mousemove(function(e){
		$("#tooltip")
			.css({
				"top": (e.pageY+y) + "px",
				"left":  (e.pageX+x)  + "px"
			});
	});
})
//]]>
</script>
   </script>
	</body>
</html>
<?php }} ?>
